import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AppComponent } from './app.component';
import { TodoMVCComponent } from './todo-mvc/todo-mvc.component';

const routes: Routes = [
  { path: '', redirectTo: '/TodoMVC', pathMatch: 'full' },
  {
    path: 'App',
    component: AppComponent
  },
  {
    path: 'TodoMVC',
    component: TodoMVCComponent
  }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
